package com.cgbl.cg.adapter

import com.cgbl.cg.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.CommentBean
import com.robot.base.utils.pic.ImageLoaderUtils

class WorkCommentChildAdapter : BaseQuickAdapter<CommentBean, BaseViewHolder>(R.layout.app_item_work_comment_child) {
    override fun convert(holder: BaseViewHolder, item: CommentBean) {
        holder.setText(R.id.item_tv_name, item.fromNickName)
            .setText(R.id.item_tv_name_2, item.toNickName)
            .setText(R.id.item_tv_content, item.content)
        ImageLoaderUtils.displayCirclePortrait(context, holder.getView(R.id.item_iv_avatar), item.fromAvatar)
    }
}